﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper.DBContext;
using Guoc.BigMall.Application.ViewObject;

namespace Guoc.BigMall.Application.Facade
{
    public class WechatAccountFacade : IWechatAccountFacade
    {
        IDBContext _db;

        public WechatAccountFacade(IDBContext dbContext)
        {
            _db = dbContext;
        }
        public WechatAccountVo GetByStoreCode(string storeCode)
        {
             var model= _db.Table<WechatAccountVo>().FirstOrDefault(n=>n.StoreCode==storeCode);
            return model;
        }
    }
}
